package chapterThree.arrays;

import java.awt.Dimension;

public class ArraysTestes {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		Dimension d=new Dimension(99,99);
		Dimension[] tab=new Dimension[3];
		tab[0]=d;
		tab[1]=new Dimension(11,22);
		tab[2]=new Dimension(33,11);
		for (int i = 0; i < tab.length; i++) {
			((Dimension)tab[i]).setSize(i, i);
		}
		
		System.out.println(d.getHeight());
		System.out.println(d.getWidth());
		System.out.println("-----------------------------------------------------------");
		int var1[][]={new int[2],new int[2]};
		
		int var[][]=new int[2][];
		var[0]=new int[3];
		var[0][0]=1;
		var[0][1]=1;
		var[0][2]=1;
		var[1]=new int[5];
		  for (int i = 0; i < var.length; i++) {
			  for (int j = 0; j < var[i].length; j++) {
			  System.out.println(var[i][j]);
			  }
		}             
		
	}

}
